﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Extentions;

namespace TrainingReminderSystem.Model
{
    /// <summary>
    /// 系统日志
    /// </summary>
    [ExLanguageKey("SysLog")]
    public partial class SysLogExPost
    {
        /// <summary>
        /// 日志表ID
        /// </summary>
        [ExLanguageKey("ID")]
        [Key]
        public int ID { get; set; }

        /// <summary>
        /// 错误日志=0,登录=1,注销=10,新建=100,编辑=200,删除=300,查询=500,导出=600  错误日志记录到LogForNet里面
        /// </summary>
        [ExLanguageKey("EnumLogType")]
        public EnumLogType EnumLogType { get; set; }

        /// <summary>
        /// 表名
        /// </summary>
        [ExLanguageKey("TblName")]
        public string TblName { get; set; }

        /// <summary>
        /// 主键ID
        /// </summary>
        [ExLanguageKey("TblID")]
        public int? TblID { get; set; }

        /// <summary>
        /// 提交的值
        /// </summary>
        [ExLanguageKey("PostVal")]
        public string PostVal { get; set; }

        /// <summary>
        /// 之前的值
        /// </summary>
        [ExLanguageKey("BeforeVal")]
        public string BeforeVal { get; set; }

        /// <summary>
        /// IP地址
        /// </summary>
        [ExLanguageKey("IPAddress")]
        public string IPAddress { get; set; }

        /// <summary>
        /// 客户ID
        /// </summary>
        [ExLanguageKey("SysCustomerID")]
        public int? SysCustomerID { get; set; }

        /// <summary>
        /// 员工ID
        /// </summary>
        [ExLanguageKey("SysEmployeeID")]
        public int? SysEmployeeID { get; set; }

        /// <summary>
        /// GetUrl;一般错误日志才去记录 忽略这三个字段
        /// </summary>
        [ExLanguageKey("GetUrl")]
        public string GetUrl { get; set; }

        /// <summary>
        /// PostForm;一般错误日志才去记录 忽略这三个字段
        /// </summary>
        [ExLanguageKey("PostForm")]
        public string PostForm { get; set; }

        /// <summary>
        /// UserAgent;一般错误日志才会去记录 忽略这三个字段
        /// </summary>
        [ExLanguageKey("UserAgent")]
        public string UserAgent { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [ExLanguageKey("Remark")]
        public string Remark { get; set; }
    }
}
